<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>uploadFile</title>
	<style>
		*{padding:0;margin:0;list-style: none}
		.hide{display: none;}
		.show{display: initial;}
		.img-preview{width:200px;}
	</style>
</head>
<body>
	<input type="file" id="imgFileSelector" value="请上传图片">
	<p>
		<img id="originImgPreview" alt="" src="" class="img-preview hide" />
	</p>
	<p>
		<img id="compressedImgPreview" alt="" src="" class="img-preview hide" />
	</p>
<script src="upload.js" type="module"></script>
</body>
</html>